package lv;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class Server {
	public static void main(String[] args){
		Server server=new Server();
		server.start();
	}

	private void start() {
		try {
			ServerSocket server=new ServerSocket(80);
			while(true){
				Socket s=server.accept();
				Process p=new Process(s.getInputStream(),s.getOutputStream());
				p.run();
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
		
	}
}
